<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const user = new Map();
      user
        .set("name", "jack")
        .set("age", 20)
        .set("gender", "boy")
        .set("allow", true);
      console.log("user.keys()", Array.from(user.keys()));
      console.log("user.values()", Array.from(user.values()));
      // console.log("user.entries()", Array.from(user.entries()));
      console.log("user", Array.from(user));
    </script>
  </body>
</html>
